﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Diagnostics;
using System.Threading;

namespace Ajc {
    static class Program {
        public const String VERSION = "0.4";

        /// <summary>
        /// ...
        /// </summary>
        [STAThread]
        static void Main() {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

#if (! DEV_MODE)
            SplashScreen spash = new SplashScreen(2000);
            Application.Run(spash);
#endif

            SettingsForm appForm = new SettingsForm();
            Skyping skypeFuncs = null;
            try {
                skypeFuncs = new Skyping(appForm, appForm);
            } catch (SkypingException excp) {
                MessageBox.Show(excp.Message);
                return;
            }
            appForm.setSkyping(skypeFuncs);
#if (DEV_MODE)
            appForm.Show();
            appForm.ShowInTaskbar = true;
#endif
            Application.Run();
        }

    }
}